home *** CD-ROM | disk | FTP | other *** search
/ Star Trek Starfleet Academy Mini Omnipedia / MINI_OMNI.ISO / pc / omni_v2.dxr / 00366_picon killer DESTRUCTOR.ls < prev    next >
Encoding:
Text File  |  1996-04-15  |  747 b   |  36 lines

  1. on hprepzapper
  2.   set vSize to the number of lines in field 10
  3.   startTimer()
  4.   set x to 0
  5.   repeat with n = 1240 to 3500
  6.     if field 10 contains string(n) then
  7.       set x to x + 1
  8.     end if
  9.   end repeat
  10.   put the timer
  11.   put x
  12. end
  13.  
  14. on hKillUnUsedPicons
  15.   set vL to value(field "we use these picons")
  16.   sort(vL)
  17.   copyToClipBoard(cast "blankhold")
  18.   startTimer()
  19.   repeat with n = 1240 to 3501
  20.     if getOne(vL, n) = 0 then
  21.       pasteClipBoardInto(cast n)
  22.     end if
  23.   end repeat
  24.   put "Picons killed in" && the timer && "ticks"
  25. end
  26.  
  27. on hFillEMptiesWIthBlanks a, b
  28.   copyToClipBoard(cast "blankhold")
  29.   repeat with n = a to b
  30.     if the castType of cast n = #empty then
  31.       pasteClipBoardInto(cast n)
  32.     end if
  33.   end repeat
  34.   put "done"
  35. end
  36.